package com.ruoyi.applet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.ProductSpecsMapper;
import com.ruoyi.applet.domain.ProductSpecs;
import com.ruoyi.applet.service.IProductSpecsService;

import javax.annotation.Resource;

/**
 * 商品规格关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Service
public class ProductSpecsServiceImpl implements IProductSpecsService 
{
    @Resource
    private ProductSpecsMapper productSpecsMapper;

    @Override
    public Integer updateProductNumberAndProductSpecId(Long stock, Long productSpecValueId) {
        return productSpecsMapper.updateProductNumberAndProductSpecId(stock, productSpecValueId);
    }

    @Override
    public ProductSpecs selectAllByProductSpecIdProductSpecs(Long productId) {
        return productSpecsMapper.selectAllByProductSpecIdProductSpecs(productId);
    }
}
